package com.itheima.d14_extends_constructor;

public class teacher extends people {
    private String skill;

    public String getSkill() {
        return skill;
    }

    public void setSkill(String skill) {
        this.skill = skill;
    }

    public teacher(String name, int age,String skill) {
        super(name, age);
        this.skill = skill;
    }

    public teacher() {
    }

    @Override
    public String toString() {
        return "\'" + getName() + "\'" + "\'" + getAge() + "\'" + "\'" + skill + "\'";
    }
}
